using UnityEngine;

/// <summary>
/// 火爆辣椒 植物数据
/// </summary>
[CreateAssetMenu(menuName = "创建ScriptableObject/Plants/JalapenoData")]
public class JalapenoData : PlantData
{
    [Header("爆炸属性")]
    [Tooltip("爆炸伤害值")]
    public long ExplosionDamage = 1800;
    
    [Tooltip("攻击范围（整行）")]
    public bool AttackFullRow = true;
    
    [Tooltip("是否一次性使用")]
    public bool IsOneTimeUse = true;
    
    [Tooltip("触发延迟时间（秒）")]
    public float TriggerDelay = 0.5f;

    private void OnEnable()
    {
        Type = PlantType.Jalapeno;
        // 火爆辣椒没有死亡动画，执行攻击后直接销毁
        HasDeathAnimation = false;
    }
}

